<?php

namespace common\view;

class View {

	/**
	 * [getHTMLPage description]
	 * @param  String $title 
	 * @param  String $body  
	 * @return String html
	 */
	public function getHTMLPage(\common\view\Page $page) {
		$title = $page->title;
		$body = $page->body;
		$footer = $page->footer;
		
		$html = 
		"<!DOCTYPE HTML>
		<html>
			<head>
				<title>$title</title>
				<meta charset='UTF-8'></meta>
				<link href='http://fonts.googleapis.com/css?family=ABeeZee' rel='stylesheet' type='text/css'>
				<link href='style/style.css' rel='stylesheet' type='text/css'>
			</head>
			<body>
				<div id='main'>
					<div id='header'>
						<h1><a href='./'>Image blogg project</a></h1>
					</div>
					<div id='content'>
					$body
					</div>
					<div id='footer'>
						$footer
						<div class='clearfix'>
						</div>
					</div>
				</div>
			</body>
		</html>";

		return $html;
	}
}